﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true"
    CodeBehind="QuanlyTudien.aspx.cs" Inherits="TudienOnline.Admin.QuanlyTudien" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <table>
        <tr>
            <td>
                <asp:Label ID="lblThongbao" runat="server" Text=""></asp:Label>
            </td>
            
        </tr>
        <tr>
            <td>
                <asp:GridView ID="gvTudien" runat="server" AutoGenerateColumns="False" 
                    onselectedindexchanging="gvTudien_SelectedIndexChanging" CellPadding="4" 
                    ForeColor="#333333" GridLines="None">
                    <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                    <Columns>
                        <asp:TemplateField>
                            <EditItemTemplate>
                                <asp:CheckBox ID="chkXoa" runat="server" />
                            </EditItemTemplate>
                            <ItemTemplate>
                                <asp:CheckBox ID="chkXoa" runat="server" />
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:BoundField DataField="PK_iTudienID" HeaderText="ID" />
                        <asp:BoundField DataField="sTudien" HeaderText="Từ điển" />
                        <asp:ButtonField CommandName="Select" HeaderText="Sửa" Text="Sửa" />
                    </Columns>
                    <EditRowStyle BackColor="#999999" />
                    <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                    <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                    <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                    <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                    <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                    <SortedAscendingCellStyle BackColor="#E9E7E2" />
                    <SortedAscendingHeaderStyle BackColor="#506C8C" />
                    <SortedDescendingCellStyle BackColor="#FFFDF8" />
                    <SortedDescendingHeaderStyle BackColor="#6F8DAE" />
                </asp:GridView>
            </td>
        </tr>
        <tr>
            <td align="right">
                <asp:LinkButton ID="lbtnThemmoi" runat="server" onclick="lbtnThemmoi_Click">Thêm mới</asp:LinkButton>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Panel ID="pnEdit" runat="server" Visible="false">
                    <table>
                        <tr>
                            <td>Tên từ điển:</td>
                            <td>
                                <asp:TextBox ID="txtTentudien" runat="server"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2" align="right">
                                <asp:Button ID="btnLuu" runat="server" Text="Lưu" onclick="btnLuu_Click" OnClientClick="return confirm('Có chắc chắn thực hiện không?');" />
                                <asp:Button ID="btnBoqua" runat="server" Text="Bỏ qua" 
                                    onclick="btnBoqua_Click" />
                            </td>
                        </tr>
                    </table>
                </asp:Panel>
             </td>
        </tr>
    </table>
</asp:Content>
